<template>
    <div :class="`my-tag-1 ${ikun}`">
        <!-- 插槽:一个占位符;使用时才会替换成实际的值 -->
        <slot/>
    </div>
</template>

<script>
    export default {
        props:{
            ikun:{
                default:'default'
            }
        }
    }
</script>

<style lang="scss" scoped>
.my-tag-1{
    display: inline-block;
    margin: 2px;
    border-radius: 4px;
    padding: 8px 10px;
    color: white;
    user-select: none;
    cursor: pointer;
    &.default{
        background-color: #419eff;
    }
    &.success{
        background-color: #67c33c;
    }
    &.info{
        background-color: #919299;
    }
    &.danger{
        background-color: #f38588;
    }
    &.warning{
        background-color: #e8a43f;
    }
}
</style>